package com.techprimers.mongodb.springbootmongodbexample.bean;

import cn.hutool.core.util.RandomUtil;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@Accessors(chain = true)
public class DeviceStatus implements Serializable {
    private static final long serialVersionUID = 1L;

    private String deviceId = RandomUtil.randomString(9);

    private Long timestamp = System.currentTimeMillis();

    private Coordinate coordinate = new Coordinate();

    private NetworkStatus network = new NetworkStatus();
}
